x86 hvm: Refuse to perform __hvm_copy() work in atomic context.
authorKeir Fraser <keir@xen.org>
Thu, 18 Nov 2010 12:28:31 +0000 (12:28 +0000)
committerKeir Fraser <keir@xen.org>
Thu, 18 Nov 2010 12:28:31 +0000 (12:28 +0000)
commit138880600a0572ea13748e2c166f22727299a367
tree7067a0eec683a81b12c49997449e5a7744a5d5b4
parent6020fcb84859f63343a74f46bf2f2d3d8e5a195c
x86 hvm: Refuse to perform __hvm_copy() work in atomic context.

Soon we will properly handle paged out memory in this function by
sleeping in hypervisor context. This will require that all callers can
sleep.

If this check is too strong, we can reduce it to only applying to
guests with paging enabled (which also currently implies only guests
using Intel EPT). However my brief testing seems to indicate it works
okay.

Signed-off-by: Keir Fraser <keir@xen.org>
xen/arch/x86/hvm/hvm.c